package com.example.enterprisemanager.mvvm.adapter;

import com.example.enterprisemanager.R;
import com.example.enterprisemanager.base.BaseBindingAdapter;
import com.example.enterprisemanager.base.BaseBindingViewHolder;
import com.example.enterprisemanager.databinding.ItemEnrollGoodsBinding;
import com.example.enterprisemanager.mvvm.fragment.manager.ben.PurchaseGoods;

public class EnrollAdapter extends BaseBindingAdapter<PurchaseGoods, BaseBindingViewHolder> {
    public EnrollAdapter() {
        super(R.layout.item_enroll_goods);
    }

    @Override
    protected void convert(BaseBindingViewHolder helper, PurchaseGoods item) {
        helper.addOnClickListener(R.id.btn_enroll_item);
        ItemEnrollGoodsBinding binding = helper.getBinding();
        binding.setGoods(item);
    }
}
